package com.ruoyi.zhhq.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 维修订单对象 zhhq_serviceorder
 * 
 * @author wlh
 * @date 2022-10-27
 */
public class Serviceorder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单id */
    private String orderId;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date start;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date end;

    /** 用户id */
    @Excel(name = "用户id")
    private String uid;

    /** 修理id */
    @Excel(name = "修理id")
    private String serviceId;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

   private Repair repair;
   
   private User user;
   
   private String createBy;
	
   
    public String getCreateBy() {
	return createBy;
}

public void setCreateBy(String createBy) {
	this.createBy = createBy;
}

	public User getUser() {
	return user;
}

public void setUser(User user) {
	this.user = user;
}

public static long getSerialversionuid() {
	return serialVersionUID;
}

	public Repair getRepair() {
	return repair;
}

public void setRepair(Repair repair) {
	this.repair = repair;
}

	public void setOrderId(String orderId) 
    {
        this.orderId = orderId;
    }

    public String getOrderId() 
    {
        return orderId;
    }
    public void setStart(Date start) 
    {
        this.start = start;
    }

    public Date getStart() 
    {
        return start;
    }
    public void setEnd(Date end) 
    {
        this.end = end;
    }

    public Date getEnd() 
    {
        return end;
    }
    public void setUid(String uid) 
    {
        this.uid = uid;
    }

    public String getUid() 
    {
        return uid;
    }
    public void setServiceId(String serviceId) 
    {
        this.serviceId = serviceId;
    }

    public String getServiceId() 
    {
        return serviceId;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

	@Override
	public String toString() {
		return "Serviceorder [orderId=" + orderId + ", start=" + start + ", end=" + end + ", uid=" + uid
				+ ", serviceId=" + serviceId + ", status=" + status + ", repair=" + repair + ", user=" + user
				+ ", createBy=" + createBy + "]";
	}
}
